package com.study.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/4/13 12:52 下午
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
public class R implements Serializable {

    private Boolean flag;

    private Object data;

    private String msg;

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(String msg) {
        this.flag = false;
        this.msg = msg;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }
}
